package com.meet.persist.dao;

import com.meet.persist.entity.UserMemberLevel;
import org.apache.ibatis.annotations.Param;

public interface UserMemberLevelDao {
    UserMemberLevel findByUserId(String userId);

    UserMemberLevel findByLevelId(String levelId);

    boolean insert(UserMemberLevel level);

    boolean update(UserMemberLevel level);

    /**
     * 升级用户会员等级
     */
    boolean upgradeMemberLevel(@Param("userId") String userId, @Param("levelId") String levelId);
}
